<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Furniture Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />

<script type="text/javascript">
function loadXMLDoc(loai,i)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  //alert(xmlhttp.status);
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("items").innerHTML=xmlhttp.responseText;
	 //alert(xmlhttp.status);
    }
  }
xmlhttp.open("POST","db/danhmuc.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("loai="+loai+"&i="+i);
}

function loaddetail(ma)
{

var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  //alert(xmlhttp.status);
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("items").innerHTML=xmlhttp.responseText;
	 //alert(xmlhttp.status);
    }
  }
xmlhttp.open("POST","db/chitiet.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("ma="+ma);
}

function comment(ma)
{

 var ten = window.document.getElementById("txtNguoiBL").value;
 var noidung = window.document.getElementById("noidung").value;
 if(ten=="" && noidung == "")
 {
 	alert("chưa điền đủ thông tin!");
	return false;
 }
 window.document.getElementById("txtNguoiBL").value="";
 window.document.getElementById("noidung").value = "";
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  //alert(xmlhttp.status);
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("binluanmoi").innerHTML='<strong>'+ten+'</strong>'+'<br />'+noidung;
	 //alert(xmlhttp.status);
    }
  }
xmlhttp.open("POST","db/binhluan.php",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("ma="+ma+"&ten="+ten+"&noidung="+noidung);
}
</script>


</head>

<body>
<?php
	include_once("login/demo.php");
	include_once("phutung/header.php");
?>
<div id="wrapper">																																																																													<div class="inner_copy">
	<a href="http://www.bestfreetemplates.info/flash.php">free flash website templates</a><a href="http://www.beautifullife.info/web-design/15-best-free-website-builders/">best free website builders</a></div>
		<div id="content_inside">
		<?php
			include_once("phutung/left.php");
			include_once("phutung/main.php");
			
		?>
		
		<div id="items">
		</div>
		</div>
		
</div>
<?php
	include_once("phutung/footer.php");
	include_once("phutung/map.php");
	
?>
	

</body>
</html>
